How to enable the user to add background images to anchor links thought Wordpress admin panel? [closed]
Posted
by
janoChen
on Pro Webmasters
See other posts from Pro Webmasters
or by janoChen
Published on 2011-02-10T18:54:37Z
Indexed on
2011/02/10
23:34 UTC
Read the original article
Hit count: 214
css
I have css selectors like this on in my style.css:
.jimgMenu ul li.landscapes a {
background: url(../images/landscapes.jpg) repeat scroll 0%;
}
What's the easiest way to enable the user to add background images to anchor links like the ones below?
front-page.php:
<div class="jimgMenu">
<ul>
<li class="landscapes"><a href="#nogo">Landscapes</a></li>
<li class="people"><a href="#nogo">People</a></li>
<li class="nature"><a href="#nogo">Nature</a></li>
<li class="abstract"><a href="#nogo">Abstract</a></li>
<li class="urban"><a href="#nogo">Urban</a></li>
<li class="people2"><a href="#nogo">People</a></li>
</ul>
</div>
To illustrate:
.jimgMenu ul li.landscapes a {
background: url(<add background image>) repeat scroll 0%;
}
What that code would look like?
© Pro Webmasters or respective owner